import http from "../request.js";

const header = { "Content-Type": "application/json" };

class Login {
  // 账号密码登录注册
  getToken(params) { return http.post("/api/getToken",params,{header}).then((res) => res.data);}
  // 用户列表
  getUserList() { return http.post("/api/getUserList").then((res) => res.data);}
  // 用户列表信息
  getUserInfoByIds(params:any) { return http.post("/api/getUserInfoByIds",params).then((res) => res.data);}
}

export const loginApi = new Login();
